package housing.task3.factory;

import housing.task3.dao.HsAddressDao;
import housing.task3.jdbc.HsAddressDaoImpl;

import java.sql.Connection;

public class HsAddressDaoFactory {
    /**
     * Method 'create'
     *
     * @return HsAddressDao
     */
    public static HsAddressDao create() {
        return new HsAddressDaoImpl();
    }

    /**
     * Method 'create'
     *
     * @param conn
     * @return HsAddressDao
     */
    public static HsAddressDao create(Connection conn) {
        return new HsAddressDaoImpl(conn);
    }

}
